﻿Imports GalaSoft.MvvmLight
Namespace FL_8x0.FL_830.Model
    Public Class SerialPortModel
        Inherits ViewModelBase

        Private _protocol As UShort
        Private _id As UShort
        Private _baudRate As UShort
        Private _dataBits As UShort
        Private _stopBits As UShort
        Private _parity As Char

        Public Property Protocol As UShort
            Get
                Return _protocol
            End Get
            Set
                _protocol = Value
            End Set
        End Property

        Public Property Id As UShort
            Get
                Return _id
            End Get
            Set
                _id = Value
            End Set
        End Property

        Public Property BaudRate As UShort
            Get
                Return _baudRate
            End Get
            Set
                _baudRate = Value
            End Set
        End Property

        Public Property DataBits As UShort
            Get
                Return _dataBits
            End Get
            Set
                _dataBits = Value
            End Set
        End Property

        Public Property StopBits As UShort
            Get
                Return _stopBits
            End Get
            Set
                _stopBits = Value
            End Set
        End Property

        Public Property Parity As Char
            Get
                Return _parity
            End Get
            Set
                _parity = Value
            End Set
        End Property
    End Class
End Namespace